<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SwtOrderRefund extends Model
{
    use HasFactory;
    use HasDateTimeFormatter;

    protected $table = 'swt_order_refund';

    protected $fillable = [
        'order_id',
        'user_id',
        'refund_amount',
        'status',
        'notes',
        'reject_notes'
    ];

    public function order()
    {
        return $this->belongsTo(SwtOrder::class);
    }

    public function user()
    {
        return $this->belongsTo(SwtUser::class);
    }
}
